package com.jarvan.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class TicketForm {
    @NotEmpty(message = "列车型号必填")
    private String trainId;

    @NotEmpty(message = "旅客id必填")
    private Integer buyerId;
    /**
     * 始发站
     */
    @NotEmpty(message = "出发站必填")
    private String departure;
    /**
     * 终点站
     */
    @NotEmpty(message = "终点站必填")
    private String destination;
    /**
     * 出发日期
     */
    @NotEmpty(message = "出发日期必填")
    private String departureDate;
    /**
     * 座位类型
     */
    @NotEmpty(message = "座位类型必填")
    private Integer seatType;
}
